//
//  YSProgressImageView.h
//  Yueshi
//
//  Created by Northwan on 15/9/29.
//  Copyright © 2015年 悦食中国. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YSProgressImageViewDelegate <NSObject>

@optional
/**上传图片成功回调*/
-(void)uploadImageSuccess:(NSString *)imageUrl tag:(NSInteger)tag;
/**上传图片失败回调*/
-(void)uploadImageFailure:(NSInteger)tag;

@end

@interface YSProgressImageView : UIImageView
@property (weak, nonatomic)id<YSProgressImageViewDelegate> delegate;
/**控制是否显示进度条*/
@property (assign, nonatomic) BOOL whileShowIndicator;
/**上传图片*/
-(void)uploadImg:(UIImage *)image;
/**是否已经上传*/
@property (assign, nonatomic) BOOL isUpload;

@end
